package com.tudouji.project.produce.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.flow.service.pojo.BasePojo;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import com.tudouji.project.flow.domain.Flowtempnode;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 报废单对象 scrapapply
 *
 * @author tudouji
 * @date 2022-06-01
 */
@Data
public class Scrapapply extends BasePojo {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;
    private Long deptId;
    private String deptName;
    private Long orgId;
    private Long createBy;
    private Long strmId;

    private String guid;

    /**
     * 编号
     */
    @Excel(name = "编号")
    private String code;

    /**
     * 生产领料单ID
     */
    @Excel(name = "生产领料单ID")
    private String pickinglistid;

    /**
     * 库房guid
     */
    @Excel(name = "库房guid")
    private String srguid;

    /**
     * 报废类型:1-产品报废,2-原料报废 ,3 生产废品登记
     */
    @Excel(name = "报废类型:1-产品报废,2-原料报废 ,3 生产废品登记")
    private Integer type;

    /**
     * 总重量
     */
    @Excel(name = "总重量")
    private BigDecimal weight;

    /**
     * 总金额
     */
    @Excel(name = "总金额")
    private BigDecimal amount;

    /**
     * 状态:1-审批中、2-待出库、3-已报废（已出库报废）
     */
    @Excel(name = "状态:1-审批中、2-待出库、3-已报废", readConverterExp = "已=出库报废")
    private Integer status;

    /**
     * 公司id
     */
    @Excel(name = "公司id")
    private String orgguid;

    /**
     * 公司名称
     */
    @Excel(name = "公司名称")
    private String orgname;

    /**
     * 班组id
     */
    @Excel(name = "班组id")
    private String departid;

    /**
     * 申请人
     */
    @Excel(name = "申请人")
    private String operatorid;

    /**
     * 最后修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastupdate;

    /**
     * 报废原因:1腐烂,2库损
     */
    @Excel(name = "报废原因:1腐烂,2库损")
    private Integer scraptype;

    /**
     * $column.columnComment
     */
    @Excel(name = "报废原因:1腐烂,2库损")
    private String flowid;
    private String keyword;
    private String search;
    private String statusName;

    private List<Scrapapplyitem> items;

    private Date createtime;
    private String[] roomids;
    private String[] depids;
    private Integer[] stats;

    private List<Flowtempnode> nodes;
    private String notStatus;

    private String remark;

    private String operator;

    private String departname;


    private String strname;

    private String[] ids;

    private String[] pickids;


    private String pickcode;

    private String planname;

    private Date planstart;

    private String scraptypeName;

    private String typeName;

    private String statusname;

    private Integer[] notStats;
}
